﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="List.ascx.cs" Inherits="Admin_Account_Modules_visa_List" %>
<input type="hidden" value="false" id="Duyet" runat="server"/>
<input type="hidden" value="false" id="hidDelete" runat="server" />
<div id="content">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        
            <div>dung search box</div>
        <div>
            
            <table width="735" cellpadding="0" cellspacing="0">
    <tr>
        <td align="left" valign="bottom" width="555"></td>
         <td align="right" style="padding-left: 3px;" width="60">

                        </td>
        <td align="right" width="60">
                 
                           <a href="<%=Constant.ROOT_PATH %>admin/Account/AddNew.aspx?Pro=visa"> <img src="<%=Constant.ROOT_PATH %>images/imagesbutton/new_item.gif" border="0"/></a>
                 
                    </td>
                   
                    <td align="right" style="padding-left: 3px;" width="60">
                        <asp:ImageButton ID="btnimgDel" runat="server" onclick="btnimgDel_Click" />
                    </td>
    </tr>
    <tr>
        <td colspan="4">
            <div style="padding: 5px 0px 5px 0px" runat="server" id="MyUpdate">
                  
                <asp:GridView runat="server" ID="grdDs" Width="735" CellSpacing="0" CellPadding="3"
                    AlternatingRowStyle-Width="1" BorderStyle="Solid" BorderColor="Black" AutoGenerateColumns="false"
                    BorderWidth="1" OnPageIndexChanging="GRV_PageIndexChanging" PagerSettings-Position="Bottom"
                    PagerStyle-HorizontalAlign="Center" ShowFooter="true" AllowPaging="True" PageSize="1"
                    PagerSettings-Mode="NumericFirstLast" GridLines="Both" DataKeyNames="ID">
                    <PagerSettings PageButtonCount="20" />
                    <HeaderStyle BackColor="#3f9feb" Height="20" CssClass="title_white" />
                    <PagerStyle HorizontalAlign="Center" CssClass="cssPager" />
                    <AlternatingRowStyle BackColor="#ffffff" />
                    
                    <Columns>
                    
                         <asp:TemplateField HeaderText="STT" HeaderStyle-Width="20" HeaderStyle-HorizontalAlign="center"
                            HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1"
                            ItemStyle-HorizontalAlign="Center" ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid"
                            ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black" FooterStyle-BorderStyle="Solid"
                            FooterStyle-BorderWidth="1">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSTT" Text='<%# Container.DataItemIndex + 1%>' />
                            </ItemTemplate>

                            <FooterStyle BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></FooterStyle>

                            <HeaderStyle HorizontalAlign="Center" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" Width="20px"></HeaderStyle>

                            <ItemStyle HorizontalAlign="Center" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></ItemStyle>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="ID" Visible="False">
                                <ItemTemplate>
                                    <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                                </ItemTemplate>
                        
                        </asp:TemplateField>
                        
                         <asp:TemplateField ItemStyle-CssClass="WordWrapItem" HeaderText="Tên" ItemStyle-VerticalAlign="Middle"  HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-HorizontalAlign="Left" ItemStyle-BorderColor="Black"
                            ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black"
                            FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="1">
                            <ItemTemplate>                               
                               <span style="font-weight:bold;"><%#Convert.ToString(DataBinder.Eval(Container.DataItem, "NAME"))%>                                                                                                       
                               </span>
                            </ItemTemplate>

                            <FooterStyle BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></FooterStyle>

                            <HeaderStyle BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></HeaderStyle>

                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" CssClass="WordWrapItem"></ItemStyle>
                        </asp:TemplateField>   
                        
                        
                      
                      
                        
                        <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20"
                            FooterStyle-HorizontalAlign="Center" HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid"
                            ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black" FooterStyle-BorderStyle="Solid"
                            FooterStyle-BorderWidth="1">
                            <ItemTemplate>
                                <a href="<%#Constant.ROOT_PATH +"admin/Account/Edit.aspx?Pro=visa&ID=" + DataBinder.Eval(Container.DataItem, "ID") %>"><img
                                    src='<%=Constant.ROOT_PATH %>images/edit.gif' border='0' /></a>
                            </ItemTemplate>

                            <FooterStyle HorizontalAlign="Center" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></FooterStyle>

                            <HeaderStyle BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></HeaderStyle>

                            <ItemStyle HorizontalAlign="Center" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" Width="20px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Xóa" ItemStyle-Width="20" HeaderStyle-BorderColor="Black"
                            HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1" ItemStyle-HorizontalAlign="Left"
                            ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1"
                            FooterStyle-BorderColor="Black" FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="1">
                            <ItemTemplate>
                                <asp:CheckBox runat="server" ID="chkDelete" />
                            </ItemTemplate>

                            <FooterStyle BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></FooterStyle>

                            <HeaderStyle BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></HeaderStyle>

                            <ItemStyle HorizontalAlign="Left" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" Width="20px"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle HorizontalAlign="Center" Width="1px" />
                </asp:GridView>
                 
            </div>
        </td>
    </tr>
    
</table>
        </div>
        </ContentTemplate>
    </asp:UpdatePanel>

</div><!--End content-->